//引入所需插件
import instance from './ajax'

//或取首页参数
export function reqHomePageList() {
  return instance.get('/homepage/block/page')
}

//请求电台轮播
export function reqRadioBanner() {
  return instance.get("/dj/banner")
}

//请求TopList
export function reqRadioTopList() {
  return instance.get("/dj/program/toplist?limit=100")
}

//请求电台分类图标
export function reqRadioClass() {
  return instance.get("/dj/catelist")
}

//对应分类电台的数据
export function reqOneTypeRadio(id) {
  return instance.get(`/dj/radio/hot?cateId=${id}`)
}

//请求电台分类推荐天台
export function reqRadioCategoryRec() {
  return instance.get("/dj/category/recommend")
}

//请求电台推荐节目
export function reqRadioRecShow() {
  return instance.get("/program/recommend")
}

//某个电台详细
export function reqOneRadioInfo(id) {
  return instance.get(`/dj/detail?rid=${id}`)
}

// 音乐表单
// import { reqUserMusicList } from "@/api/index.js";
export function reqUserMusicList() {
  return instance.get('/user/playlist?uid=32953014')
}
//获取热门新碟数据接口
export function reqNewdiscListData() {
  return instance.get('/album/newest')

}

// 获取新碟上架接口
export function reqAllNewdiscListData(page, limit, area) {
  return instance.get(`/album/new?page=${page}&limit=${limit}&area=${area}`)
}


//获取歌手分类
export const reqSingerList = () => {
  return instance.get(`/artist/list?type=${2}&area=${8}`)
}
//获取歌手歌曲
export const reqSingerSong = (id) => {
  return instance.get(`/artist/top/song?id=${id}`)
}
// 获取专辑详情页面
export function reqAlbumDetailData(id) {
  return instance.get(`/album?id=${id}`)

}

//登陆
export const reqToLogin = (phoneNum, passwordNum) => {
  ///login/cellphone?phone=15610382823&password=titanic333
  return instance.get(
    `/login/cellphone?phone=${phoneNum}&password=${passwordNum}`
  )
}